package com.example.keli.ui.register;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Description:
 * Data：2019/3/21-9:54
 * Author: Allen
 */
public class LoginData implements Parcelable {

    /**
     * token : 07b39f6695abccc6ddac6515a95fe61a
     * uid : 82
     * add_time : 2019-03-21 09:54:01
     * client_type : app
     * convey_code : ddb2f95c8cbc327fae4b2c8ecd0139c5
     */

    private String token;
    private String uid;
    private String add_time;
    private String client_type;
    private String convey_code;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getAdd_time() {
        return add_time;
    }

    public void setAdd_time(String add_time) {
        this.add_time = add_time;
    }

    public String getClient_type() {
        return client_type;
    }

    public void setClient_type(String client_type) {
        this.client_type = client_type;
    }

    public String getConvey_code() {
        return convey_code;
    }

    public void setConvey_code(String convey_code) {
        this.convey_code = convey_code;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.token);
        dest.writeString(this.uid);
        dest.writeString(this.add_time);
        dest.writeString(this.client_type);
        dest.writeString(this.convey_code);
    }

    public LoginData() {
    }

    protected LoginData(Parcel in) {
        this.token = in.readString();
        this.uid = in.readString();
        this.add_time = in.readString();
        this.client_type = in.readString();
        this.convey_code = in.readString();
    }

    public static final Creator<LoginData> CREATOR = new Creator<LoginData>() {
        @Override
        public LoginData createFromParcel(Parcel source) {
            return new LoginData(source);
        }

        @Override
        public LoginData[] newArray(int size) {
            return new LoginData[size];
        }
    };
}
